<script type="text/javascript" src="<?php echo base_url();?>public/js/ddaccordion.js">

/***********************************************
* Accordion Content script- (c) Dynamic Drive DHTML code library (www.dynamicdrive.com)
* Visit http://www.dynamicDrive.com for hundreds of DHTML scripts
* This notice must stay intact for legal use
***********************************************/

</script>
<script type="text/javascript">
ddaccordion.init({
	headerclass: "submenuheader", //Shared CSS class name of headers group
	contentclass: "submenu", //Shared CSS class name of contents group
	collapseprev: true, //Collapse previous content (so only one open at any time)? true/false 
	defaultexpanded: [], //index of content(s) open by default [index1, index2, etc] [] denotes no content
	animatedefault: false, //Should contents open by default be animated into view?
	persiststate: true, //persist state of opened contents within browser session?
	toggleclass: ["", ""], //Two CSS classes to be applied to the header when it's collapsed and expanded, respectively ["class1", "class2"]
	togglehtml: ["suffix", "<img src='<?php echo base_url();?>public/images/plus.gif' class='statusicon' />", "<img src='<?php echo base_url();?>public/images/minus.gif' class='statusicon' />"], //Additional HTML added to the header when it's collapsed and expanded, respectively  ["position", "html1", "html2"] (see docs)
	animatespeed: "normal" //speed of animation: "fast", "normal", or "slow"
})


</script><style type="text/css">
.submenu{display: none}
</style>
<link href="<?php echo base_url();?>public/css/leftmenu.css" rel="stylesheet" type="text/css">
<div class="glossymenu">
	<img src="<?php echo base_url();?>public/images/leftmenu_header.png" style="margin: 0px px">
	<?php 
		$countcatsub = count($catgory);
	?>
			<a class="menuitem " href="#"><span class="accordprefix"></span>
			</a>
			<div style="display: block;" class="submenu">
				<ul>
					<?php 
						for($j=0;$j<$countcatsub;$j++){//for category sub
							//COFFEE(10)
							//echo "<li><a href='#'>".$catgory[$i]['cat_sub'][$j]['cat_type_sub_name']." (10)</a></li>";
							
							echo "<li>".anchor(base_url().'catcont/getCatId/'.$catgory[$j]['cat_type_sub_id'], $catgory[$j]['cat_type_sub_name'])."</li>";
						}//end for category sub
					?>
				</ul>
			</div>

	<?php echo anchor(base_url().'welcome/getCatById/13','<img src='.base_url().'public/images/leftmenu_header1.png alt="store" />')?>
	<?php echo anchor(base_url().'welcome/getCatById/13','<img src='.base_url().'public/images/khohang.jpg width="90%" height="90%" alt="store" />')?>
</div>

<table id="table_login_form">
	<tr>
		<th class = "th_table_login_form">
			LOG IN: 
		</th>
		<td class = "td_table_login_form">
			<form id="frm_login" name ="frm_login" method="post" action="<?php echo base_url()?>welcome/login">
				<?php echo form_error('user_id'); ?>
				<input id="user_id" name ="user_id" type="text" style="width:90%; " value = "USERNAME" onfocus="myFocus(this.id)"/><br/><br/>
				<?php echo form_error('pass_id'); ?>
				<input id="pass_id" name ="pass_id" type="password" style="width:90%; " value = "PASSWORD" onfocus="myFocus(this.id)"/><br/><br/>
				<input type="submit" value = "Login" id="btn_login" style="width:90px;"><br><br>
				<?php echo anchor(base_url().'welcome/resetUserPass', 'Forgot Password'); ?>
			</form>
		</td>
	</tr>
	<tr>
		<th class = "th_table_login_form">
			REGISTER:
		</th>
		<td class = "td_table_login_form">
			<form id="frm_regist" name = "frm_regist" method="post" action="<?php echo base_url()?>welcome/regist">
			Not Member<br/><br/>
			<input type="submit" value = "Register" id="btn_register" style="width:90px;">
			</form>
		</td>
	</tr>
	<tr>
		<th class = "th_table_login_form">
			SEARCH :
		</th>
		<td class = "td_table_login_form_search">
			<form id="frm_search" name = "frm_search" method="post" action="<?php echo base_url()?>welcome/search">
			<input type="text" name = "cond_search" style="width:90%;"/><br/><br/>
			<input type="submit" value = "Search" id="btn_search" style="width:90px;">
			</form>
		</td>
	</tr>
</table>
